 |
API Documentation
|
|
|
13 class Matrix :
public ByteAlignedClass<16>
18 std::array<std::array<float, 4>, 4>
_m ;
38 Matrix (
float m00,
float m01,
float m10,
float m11) ;
55 Matrix (
float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22) ;
78 Matrix (
float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33) ;
127 float get (
unsigned int row,
unsigned int col)
const ;
139 Matrix&
set (
float val,
unsigned int row,
unsigned int col) ;
float getTraceMat4() const
Matrix & setToPerspectiveMatrix(float fov, float aspect, float nearVal, float farVal)
bool operator!=(const Matrix &other)
Matrix getInverseMat3() const
void getDecomposed(Vector &position, Quaternion &orientation, Vector &scale)
Matrix getInverseMat4() const
Matrix & setOrientationComponent(const Quaternion &rot)
Matrix operator*(const Matrix &other) const
Encompasses all API of component NilkinsMaths.
Definition: IntVector.h:7
A quaternion, symbolizing rotations as a 4D vector.
Definition: Quaternion.h:14
Matrix & setScaleComponent(const Vector &scale)
float getTraceMat3() const
Represents a 4x4 float matrix.
Definition: Matrix.h:14
void operator-=(const Matrix &other)
Vector getScaleComponent() const
bool operator==(const Matrix &other)
void operator/=(float scalar)
Matrix & setToViewMatrixDirection(const Vector &position, const Vector &direction, const Vector &upDirection)
float getDeterminantMat3() const
Matrix(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
Matrix(float m00, float m01, float m10, float m11)
Matrix & setPositionComponent(const Vector &position)
float getDeterminantMat4() const
Matrix & setToOrthographicMatrix(float widthNearPlane, float heightNearPlane, float nearVal, float farVal)
float getDeterminantMat2() const
Matrix operator+(const Matrix &other) const
Matrix operator-(const Matrix &other) const
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
Matrix & setToTransformation(const Vector &position, const Quaternion &orientation, const Vector &scale)
std::array< std::array< float, 4 >, 4 > _m
The matrix memory, considered in row-major order (_m[row][col]).
Definition: Matrix.h:18
Matrix(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
Matrix getOrientationComponent() const
Matrix & operator=(const Matrix &other)
Matrix(const Matrix &other)
Matrix & fromString(const nkMemory::StringView &str)
Vector getPositionComponent() const
void operator*=(const Matrix &other)
A 4-component vector class, with floats.
Definition: Vector.h:12
float get(unsigned int row, unsigned int col) const
Matrix getTranspose() const
Matrix & set(float val, unsigned int row, unsigned int col)
Matrix operator/(float scalar) const
Matrix getInverseMat2() const
void operator+=(const Matrix &other)